NO TICKET: move level_status from observation to field_activity & rename | make observation value non-nullable#169
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
|
|
Thinking more about lab data and |
| nullable=False, | ||
| comment="The value of the observation. If a value could not be retrieved then an observation could not be made. The reason for the missing value should be documented in the correct table, like field_activity.", |
There was a problem hiding this comment.
Thinking more about lab data and value being nullable or not, I think it SHOULD be nullable. It's very common for labs to analyze samples, but the chemical is not present at a high enough concentration to be quantified. In these situations, the value is null, but there are lab qualifiers and reporting limits to provide further context.
I agree NULL values can be a pain to work with sometimes, but no result is a result and the Observation table has additional fields to explain why.
|
Closing PR for more consideration, debate, and feedback from AMP before proceeding. |
Why
This PR addresses the following problem / context:
How
Implementation summary - the following was changed / added / removed:
valuefield inobservationnon-nullablelevel_statusfrom theobservationtable to thefield_activitytable and renameactivity_status. This allows multiple activities to occur during an event, such as groundwater level and maintenance, but the status of one won't affect the status of the other.Notes
Any special considerations, workarounds, or follow-up work to note?